Leviticus 18:26-27

18:26 You yourselves must obey my statutes and my regulations and must not do any of these abominations, both the native citizen and the resident foreigner in your midst, 18:27 for the people who were in the land before you have done all these abominations, and the land has become unclean.

Leviticus 18:29-30

18:29 For if anyone does any of these abominations, the persons who do them will be cut off from the midst of their people. 18:30 You must obey my charge to not practice any of the abominable statutes that have been done before you, so that you do not defile yourselves by them. I am the Lord your God.’”